package com.first.homeqian.controller;

import com.first.common.vo.Result;
import com.first.homeqian.service.LinkService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: first-project
 * @description:
 * @author: 闫锦超
 * @create: 2023-06-01 19:40
 **/
@RestController
@RequestMapping("home/qian/link")
@Api(tags = "友情链接接口类")
public class LinkController {
    @Autowired
    private LinkService linkService;

    @GetMapping("/getQianLink")
    @ApiOperation(value = "获取所有的友情链接")
    public Result getQianLink(){
        return linkService.getQianLink();
    }
}
